toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final availabilityZones = this.availabilityZones;
  final endTimes = this.endTimes;
  final entityArns = this.entityArns;
  final entityValues = this.entityValues;
  final eventArns = this.eventArns;
  final eventStatusCodes = this.eventStatusCodes;
  final eventTypeCategories = this.eventTypeCategories;
  final eventTypeCodes = this.eventTypeCodes;
  final lastUpdatedTimes = this.lastUpdatedTimes;
  final regions = this.regions;
  final services = this.services;
  final startTimes = this.startTimes;
  final tags = this.tags;
  return {
    if (availabilityZones != null) 'availabilityZones': availabilityZones,
    if (endTimes != null) 'endTimes': endTimes,
    if (entityArns != null) 'entityArns': entityArns,
    if (entityValues != null) 'entityValues': entityValues,
    if (eventArns != null) 'eventArns': eventArns,
    if (eventStatusCodes != null)
      'eventStatusCodes': eventStatusCodes.map((e) => e.toValue()).toList(),
    if (eventTypeCategories != null)
      'eventTypeCategories':
          eventTypeCategories.map((e) => e.toValue()).toList(),
    if (eventTypeCodes != null) 'eventTypeCodes': eventTypeCodes,
    if (lastUpdatedTimes != null) 'lastUpdatedTimes': lastUpdatedTimes,
    if (regions != null) 'regions': regions,
    if (services != null) 'services': services,
    if (startTimes != null) 'startTimes': startTimes,
    if (tags != null) 'tags': tags,
  };
}