toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (left != null) 'left': left!,
      if (positionOption != null) 'positionOption': positionOption!,
      if (top != null) 'top': top!,
      if (windowHeight != null) 'windowHeight': windowHeight!,
      if (windowWidth != null) 'windowWidth': windowWidth!,
    };