ReservationSlot.fromJson constructor
ReservationSlot.fromJson(
- Object? j
Implementation
factory ReservationSlot.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ReservationSlot(
creationTimestamp: switch (json['creationTimestamp']) {
null => null,
Object $1 => decodeString($1),
},
id: switch (json['id']) {
null => null,
Object $1 => decodeUint64($1),
},
kind: switch (json['kind']) {
null => null,
Object $1 => decodeString($1),
},
name: switch (json['name']) {
null => null,
Object $1 => decodeString($1),
},
physicalTopology: switch (json['physicalTopology']) {
null => null,
Object $1 => ReservationSlotPhysicalTopology.fromJson($1),
},
selfLink: switch (json['selfLink']) {
null => null,
Object $1 => decodeString($1),
},
selfLinkWithId: switch (json['selfLinkWithId']) {
null => null,
Object $1 => decodeString($1),
},
shareSettings: switch (json['shareSettings']) {
null => null,
Object $1 => ShareSettings.fromJson($1),
},
state: switch (json['state']) {
null => null,
Object $1 => decodeString($1),
},
status: switch (json['status']) {
null => null,
Object $1 => ReservationSlotStatus.fromJson($1),
},
zone: switch (json['zone']) {
null => null,
Object $1 => decodeString($1),
},
);
}