fromMap static method

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

Gets a possible ConsoleMessage instance from a Map value.

Implementation

static ConsoleMessage? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = ConsoleMessage();
  instance.message = map['message'];
  instance.messageLevel =
      ConsoleMessageLevel.fromNativeValue(map['messageLevel'])!;
  return instance;
}