fromMap static method

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

Gets a possible ActivityButton instance from a Map value.

Implementation

static ActivityButton? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = ActivityButton(
    extensionIdentifier: map['extensionIdentifier'],
    templateImage:
        UIImage.fromMap(map['templateImage']?.cast<String, dynamic>())!,
  );
  return instance;
}