toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (density != null) 'density': density!,
      if (end != null) 'end': end!,
      if (start != null) 'start': start!,
    };