toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json.addAll({
    'decl': decl?.toJson(),
    'value': value?.toJson(),
  });
  return json;
}