toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (dartId != null) 'dartId': dartId!,
      if (desktop != null) 'desktop': desktop!,
      if (kind != null) 'kind': kind!,
      if (mobile != null) 'mobile': mobile!,
      if (name != null) 'name': name!,
    };