toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final awsAccountIds = this.awsAccountIds;
  final endTime = this.endTime;
  final entityArns = this.entityArns;
  final entityValues = this.entityValues;
  final eventStatusCodes = this.eventStatusCodes;
  final eventTypeCategories = this.eventTypeCategories;
  final eventTypeCodes = this.eventTypeCodes;
  final lastUpdatedTime = this.lastUpdatedTime;
  final regions = this.regions;
  final services = this.services;
  final startTime = this.startTime;
  return {
    if (awsAccountIds != null) 'awsAccountIds': awsAccountIds,
    if (endTime != null) 'endTime': endTime,
    if (entityArns != null) 'entityArns': entityArns,
    if (entityValues != null) 'entityValues': entityValues,
    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 (lastUpdatedTime != null) 'lastUpdatedTime': lastUpdatedTime,
    if (regions != null) 'regions': regions,
    if (services != null) 'services': services,
    if (startTime != null) 'startTime': startTime,
  };
}