Event.fromJson constructor

Event.fromJson(
  1. Map<String, dynamic> json
)

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']) ?? {},
  );
}