toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (id != null) 'id': id!,
      if (parents != null)
        'parents': parents!.map((value) => value.toJson()).toList(),
      if (revision != null) 'revision': revision!,
      if (type != null) 'type': type!,
    };