Event.fromJson constructor
Implementation
factory Event.fromJson(Map<String, dynamic> json) {
return Event(
artifact: json['artifact'] ?? '',
execution: json['execution'] ?? '',
eventTime: decodeCustom(json['eventTime'], protobuf.Timestamp.fromJson),
type:
decodeEnum(json['type'], Event_Type.fromJson) ?? Event_Type.$default,
labels: decodeMap(json['labels']) ?? {},
);
}