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