Function$.fromJson constructor
Function$.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Function$.fromJson(Map<String, dynamic> json) {
return Function$(
name: json['name'] ?? '',
description: json['description'] ?? '',
buildConfig: decode(json['buildConfig'], BuildConfig.fromJson),
serviceConfig: decode(json['serviceConfig'], ServiceConfig.fromJson),
eventTrigger: decode(json['eventTrigger'], EventTrigger.fromJson),
state:
decodeEnum(json['state'], Function$_State.fromJson) ??
Function$_State.$default,
updateTime: decodeCustom(json['updateTime'], Timestamp.fromJson),
labels: decodeMap(json['labels']) ?? {},
stateMessages:
decodeListMessage(json['stateMessages'], StateMessage.fromJson) ?? [],
environment:
decodeEnum(json['environment'], Environment.fromJson) ??
Environment.$default,
url: json['url'] ?? '',
kmsKeyName: json['kmsKeyName'] ?? '',
satisfiesPzs: json['satisfiesPzs'] ?? false,
createTime: decodeCustom(json['createTime'], Timestamp.fromJson),
);
}