Execution.fromJson constructor
Execution.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Execution.fromJson(Map<String, dynamic> json) {
return Execution(
name: json['name'] ?? '',
displayName: json['displayName'] ?? '',
state:
decodeEnum(json['state'], Execution_State.fromJson) ??
Execution_State.$default,
etag: json['etag'] ?? '',
labels: decodeMap(json['labels']) ?? {},
createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
schemaTitle: json['schemaTitle'] ?? '',
schemaVersion: json['schemaVersion'] ?? '',
metadata: decodeCustom(json['metadata'], protobuf.Struct.fromJson),
description: json['description'] ?? '',
);
}