toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final destination = this.destination;
  final logType = this.logType;
  final resourceArn = this.resourceArn;
  final kmsKeyArn = this.kmsKeyArn;
  return {
    'destination': destination.toValue(),
    'logType': logType.toValue(),
    'resourceArn': resourceArn,
    if (kmsKeyArn != null) 'kmsKeyArn': kmsKeyArn,
  };
}