// // 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 ArticleDTO { /// Returns a new [ArticleDTO] instance. ArticleDTO({ this.content, this.qrCode, this.isContentTop, this.audioId, this.isReadAudioAuto, this.images, }); List content; String qrCode; bool isContentTop; String audioId; bool isReadAudioAuto; List images; @override bool operator ==(Object other) => identical(this, other) || other is ArticleDTO && other.content == content && other.qrCode == qrCode && other.isContentTop == isContentTop && other.audioId == audioId && other.isReadAudioAuto == isReadAudioAuto && other.images == images; @override int get hashCode => (content == null ? 0 : content.hashCode) + (qrCode == null ? 0 : qrCode.hashCode) + (isContentTop == null ? 0 : isContentTop.hashCode) + (audioId == null ? 0 : audioId.hashCode) + (isReadAudioAuto == null ? 0 : isReadAudioAuto.hashCode) + (images == null ? 0 : images.hashCode); @override String toString() => 'ArticleDTO[content=$content, qrCode=$qrCode, isContentTop=$isContentTop, audioId=$audioId, isReadAudioAuto=$isReadAudioAuto, images=$images]'; Map toJson() { final json = {}; if (content != null) { json[r'content'] = content; } if (qrCode != null) { json[r'qrCode'] = qrCode; } if (isContentTop != null) { json[r'isContentTop'] = isContentTop; } if (audioId != null) { json[r'audioId'] = audioId; } if (isReadAudioAuto != null) { json[r'isReadAudioAuto'] = isReadAudioAuto; } if (images != null) { json[r'images'] = images; } return json; } /// Returns a new [ArticleDTO] instance and imports its values from /// [json] if it's non-null, null if [json] is null. static ArticleDTO fromJson(Map json) => json == null ? null : ArticleDTO( content: TranslationDTO.listFromJson(json[r'content']), qrCode: json[r'qrCode'], isContentTop: json[r'isContentTop'], audioId: json[r'audioId'], isReadAudioAuto: json[r'isReadAudioAuto'], images: ImageDTO.listFromJson(json[r'images']), ); static List listFromJson(List json, {bool emptyIsNull, bool growable,}) => json == null || json.isEmpty ? true == emptyIsNull ? null : [] : json.map((v) => ArticleDTO.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] = ArticleDTO.fromJson(v)); } return map; } // maps a json object with a list of ArticleDTO-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] = ArticleDTO.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable); }); } return map; } }