CapsuleGeometry.fromJson constructor
Implementation
factory CapsuleGeometry.fromJson(Map<String,dynamic> data ) {
return CapsuleGeometry(
radius: data['radius'],
length: data['length'],
capSegments: data['capSegments'],
radialSegments: data['radialSegments']
);
}