toJson method

Map<String, Object?> toJson()

Implementation

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

  final json = <String, Object?>{};
  if (read != null) {
    json[r'read'] = read;
  }
  if (update != null) {
    json[r'update'] = update;
  }
  return json;
}