BrickLocation.fromJson constructor

BrickLocation.fromJson(
  1. dynamic json
)

Converts a Map to a BrickLocation.

Implementation

factory BrickLocation.fromJson(dynamic json) {
  if (json is String) return BrickLocation(version: json);
  return _$BrickLocationFromJson(json as Map);
}