GateStatus.fromJson constructor
Deserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
Implementation
factory GateStatus.fromJson(Map<String, dynamic> json) {
return GateStatus(
decision: GateDecisionExtension.fromId(json['decision']),
notAfter: DateTime.fromMillisecondsSinceEpoch(
json['notAfter'],
isUtc: true,
),
reason: json['reason'],
);
}