fromMap static method

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

Gets a possible PrewarmingToken instance from a Map value.

Implementation

static PrewarmingToken? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = PrewarmingToken(
    id: map['id'],
  );
  return instance;
}