// // AUTO-GENERATED FILE, DO NOT MODIFY! // // @dart=2.0 // ignore_for_file: unused_element, unused_import // ignore_for_file: always_put_required_named_parameters_first // ignore_for_file: lines_longer_than_80_chars part of openapi.api; class VideoDTO { /// Returns a new [VideoDTO] instance. VideoDTO({ this.source_, }); String source_; @override bool operator ==(Object other) => identical(this, other) || other is VideoDTO && other.source_ == source_; @override int get hashCode => (source_ == null ? 0 : source_.hashCode); @override String toString() => 'VideoDTO[source_=$source_]'; Map toJson() { final json = {}; if (source_ != null) { json[r'source'] = source_; } return json; } /// Returns a new [VideoDTO] instance and imports its values from /// [json] if it's non-null, null if [json] is null. static VideoDTO fromJson(Map json) => json == null ? null : VideoDTO( source_: json[r'source'], ); static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => json == null || json.isEmpty ? true == emptyIsNull ? null : [] : json.map((v) => VideoDTO.fromJson(v)).toList(growable: true == growable); static Map mapFromJson(Map json) { final map = {}; if (json != null && json.isNotEmpty) { json.forEach((String key, dynamic v) => map[key] = VideoDTO.fromJson(v)); } return map; } // maps a json object with a list of VideoDTO-objects as value to a dart map static Map> mapListFromJson(Map json, {bool emptyIsNull, bool growable,}) { final map = >{}; if (json != null && json.isNotEmpty) { json.forEach((String key, dynamic v) { map[key] = VideoDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); }); } return map; } }