toJson method

Map<String, dynamic> toJson()

Implementation

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