factory ActivityType.fromJson(Map<String, dynamic> json) { return ActivityType( name: json['name'] as String, version: json['version'] as String, ); }