fromJson static method
Inherited by: DateTimeFormattingTypeAbsolute DateTimeFormattingTypeRelative
Implementation
static DateTimeFormattingType? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case DateTimeFormattingTypeAbsolute.constructor:
return DateTimeFormattingTypeAbsolute.fromJson(json);
case DateTimeFormattingTypeRelative.constructor:
return DateTimeFormattingTypeRelative.fromJson(json);
default:
return null;
}
}