toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (backgroundColor != null)
      "backgroundColor": toColorString(backgroundColor!),
    if (finderAspectRatio != null)
      "finderAspectRatio": finderAspectRatio!.toJson(),
    if (finderInsets != null) "finderInsets": finderInsets!.toJson(),
  };
}