toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var meta = this.meta;
  var value = this.value;

  final json = <String, Object?>{};
  if (meta != null) {
    json[r'meta'] = meta.toJson();
  }
  json[r'value'] = value;
  return json;
}