toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (numFiniteBuckets != null) 'numFiniteBuckets': numFiniteBuckets!,
      if (offset != null) 'offset': offset!,
      if (width != null) 'width': width!,
    };