fromMap static method

EdgeInsetsGeometryEntity? fromMap(
  1. Object? o, {
  2. Map<String, String>? newDocumentIds,
})

Implementation

static EdgeInsetsGeometryEntity? fromMap(Object? o,
    {Map<String, String>? newDocumentIds}) {
  if (o == null) return null;
  var map = o as Map<String, dynamic>;

  return EdgeInsetsGeometryEntity(
    left: double.tryParse(map['left'].toString()),
    right: double.tryParse(map['right'].toString()),
    top: double.tryParse(map['top'].toString()),
    bottom: double.tryParse(map['bottom'].toString()),
  );
}