fromJson static method

Row fromJson(
  1. dynamic value
)

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

Implementation

// ignore: prefer_constructors_over_static_methods
static Row fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return Row(
      entityId: mapValueOfType<int>(json, r'EntityId'),
      cells: Cell.listFromJson(json[r'Cells']),
    );
  }
  return null;
}