fromJson static method
Returns a new ActivityEntity instance and imports its values from
json
if it's non-null, null if json
is null.
Implementation
static ActivityEntity? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ActivityEntity(
id: json[r'id'],
type: json[r'type'],
);
}