toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (density != null) 'density': density!,
      if (displayId != null) 'displayId': displayId!,
      if (height != null) 'height': height!,
      if (name != null) 'name': name!,
      if (refreshRate != null) 'refreshRate': refreshRate!,
      if (state != null) 'state': state!,
      if (width != null) 'width': width!,
    };