fromJson static method

Cell fromJson(
  1. dynamic value
)

Returns a new Cell instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static Cell fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return Cell(
      definition: mapValueOfType<int>(json, r'Definition'),
      name: mapValueOfType<String>(json, r'Name'),
      value: ValueContainer.fromJson(json[r'Value']),
    );
  }
  return null;
}