toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {};

  result["sourceType"] = sourceType.value;
  result["fieldType"] = fieldType.value;
  result["fieldName"] = fieldName;
  result["light"] = light.value;
  result["lightName"] = lightName;
  result["pageIndex"] = pageIndex;
  result["originalPageIndex"] = originalPageIndex;
  result["value"] = value;
  result["fieldRect"] = fieldRect?.toJson();

  return result;
}