toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final metadataKey = this.metadataKey;
  final metadataValue = this.metadataValue;
  return {
    if (metadataKey != null) 'MetadataKey': metadataKey,
    if (metadataValue != null) 'MetadataValue': metadataValue,
  };
}