fromMap static method

ContentWorld? fromMap(
  1. Map<String, dynamic>? map, {
  2. EnumMethod? enumMethod,
})

Gets a possible ContentWorld instance from a Map value.

Implementation

static ContentWorld? fromMap(
  Map<String, dynamic>? map, {
  EnumMethod? enumMethod,
}) {
  if (map == null) {
    return null;
  }
  return ContentWorld.world(name: map["name"]);
}