LoopParameters.fromJson constructor

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

Implementation

LoopParameters.fromJson(Map<String,dynamic> json){
  split = json['split'] ?? true;
  uvSmooth = json['uvSmooth'] ?? false;
  preserveEdges = json['preserveEdges'] ?? false;
  flatOnly = json['flatOnly'] ?? false;
  maxTriangles = json['maxTriangles'] ?? double.maxFinite.toInt();
  weight = json['weight'] ?? 1;
}