ActivityTypeInfo.fromJson constructor
ActivityTypeInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ActivityTypeInfo.fromJson(Map<String, dynamic> json) {
return ActivityTypeInfo(
activityType:
ActivityType.fromJson(json['activityType'] as Map<String, dynamic>),
creationDate:
nonNullableTimeStampFromJson(json['creationDate'] as Object),
status: (json['status'] as String).toRegistrationStatus(),
deprecationDate: timeStampFromJson(json['deprecationDate']),
description: json['description'] as String?,
);
}