Shape.fromMap constructor

Shape.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Shape.fromMap(Map<String, dynamic> map) {
  return Shape(
    tablename: map['tablename']! as TableName,
    where: map['where'] as String?,
    include: (map['include'] as List<dynamic>?)
        ?.map<Rel>(
          (x) => Rel.fromMap(x as Map<String, dynamic>),
        )
        .toList(),
  );
}