toJson method
Implementation
Map<String, dynamic> toJson() {
final eventArns = this.eventArns;
final entityArns = this.entityArns;
final entityValues = this.entityValues;
final lastUpdatedTimes = this.lastUpdatedTimes;
final statusCodes = this.statusCodes;
final tags = this.tags;
return {
'eventArns': eventArns,
if (entityArns != null) 'entityArns': entityArns,
if (entityValues != null) 'entityValues': entityValues,
if (lastUpdatedTimes != null) 'lastUpdatedTimes': lastUpdatedTimes,
if (statusCodes != null)
'statusCodes': statusCodes.map((e) => e.toValue()).toList(),
if (tags != null) 'tags': tags,
};
}