toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final id = this.id;
  final version = this.version;
  return {
    'Id': id,
    if (version != null) 'Version': version,
  };
}