fromJson static method
Implementation
static DateTimePartPrecision? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case DateTimePartPrecisionLong.constructor:
return DateTimePartPrecisionLong.fromJson(json);
case DateTimePartPrecisionNone.constructor:
return DateTimePartPrecisionNone.fromJson(json);
case DateTimePartPrecisionShort.constructor:
return DateTimePartPrecisionShort.fromJson(json);
default:
return null;
}
}