EntertainmentConfigurationPosition.fromJson constructor

EntertainmentConfigurationPosition.fromJson(
  1. Map<String, dynamic> dataMap
)

Creates a EntertainmentConfigurationPosition object from the JSON response to a GET request.

Implementation

factory EntertainmentConfigurationPosition.fromJson(
    Map<String, dynamic> dataMap) {
  return EntertainmentConfigurationPosition(
    x: dataMap[ApiFields.x] ?? 0.0,
    y: dataMap[ApiFields.y] ?? 0.0,
    z: dataMap[ApiFields.z] ?? 0.0,
  );
}