Resource.fromJson constructor
Implementation
factory Resource.fromJson(Map<String, dynamic> json) {
return Resource(
disabledDate: timeStampFromJson(json['DisabledDate']),
email: json['Email'] as String?,
enabledDate: timeStampFromJson(json['EnabledDate']),
id: json['Id'] as String?,
name: json['Name'] as String?,
state: (json['State'] as String?)?.toEntityState(),
type: (json['Type'] as String?)?.toResourceType(),
);
}