WrapperSessionScanViewConfigOptionSegmentConfig.fromJson constructor

WrapperSessionScanViewConfigOptionSegmentConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory WrapperSessionScanViewConfigOptionSegmentConfig.fromJson(Map<String, dynamic> json) => WrapperSessionScanViewConfigOptionSegmentConfig(
    offsetX: json["offset.x"]?.toDouble(),
    offsetY: json["offset.y"]?.toDouble(),
    tintColor: json["tintColor"],
    titleIndex: json["titleIndex"],
    titles: json["titles"] == null ? [] : List<String>.from(json["titles"]!.map((x) => x)),
    viewConfigs: json["viewConfigs"] == null ? [] : List<String>.from(json["viewConfigs"]!.map((x) => x)),
);