toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (time != null) {
    json[r'time'] = time;
  }
  json[r'read'] = read;
  return json;
}