fromList static method

  1. @visibleForTesting
OptLatLngQuad? fromList(
  1. dynamic json
)

Implementation

@visibleForTesting
static OptLatLngQuad? fromList(dynamic json) {
  if (json == null) {
    return null;
  }
  return OptLatLngQuad(
    topLeft: OptLatLng._fromJson(json[0]),
    topRight: OptLatLng._fromJson(json[1]),
    bottomRight: OptLatLng._fromJson(json[2]),
    bottomLeft: OptLatLng._fromJson(json[3]),
  );
}