PlatformSummary.fromMap constructor

PlatformSummary.fromMap(
  1. Map<Object?, Object?> map
)

Creates a PlatformSummary from a map returned by the native platform.

Implementation

factory PlatformSummary.fromMap(Map<Object?, Object?> map) {
  return PlatformSummary(
    manufacturer: _readString(map, 'manufacturer'),
    brand: _readString(map, 'brand'),
    model: _readString(map, 'model'),
    device: _readString(map, 'device'),
    product: _readString(map, 'product'),
    androidSdk: _readInt(map, 'androidSdk'),
    androidRelease: _readString(map, 'androidRelease'),
  );
}