fromMap static method

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

Gets a possible ShowFileChooserResponse instance from a Map value.

Implementation

static ShowFileChooserResponse? fromMap(
  Map<String, dynamic>? map, {
  EnumMethod? enumMethod,
}) {
  if (map == null) {
    return null;
  }
  final instance = ShowFileChooserResponse(
    filePaths: map['filePaths'] != null
        ? List<String>.from(map['filePaths']!.cast<String>())
        : null,
    handledByClient: map['handledByClient'],
  );
  return instance;
}