CapsuleGeometry.fromJson constructor

CapsuleGeometry.fromJson(
  1. Map<String, dynamic> data
)

Implementation

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