fromMap static method

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

Gets a possible AndroidResource instance from a Map value.

Implementation

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