DriveAbout.fromMap constructor

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

Implementation

factory DriveAbout.fromMap(Map<String, dynamic> map) {
  return DriveAbout(
    category: map['category'],
    maxFileUploadSize: map['maxFileUploadSize'] != null
        ? int.parse(map['maxFileUploadSize'])
        : null,
    maxThumbnailSize: map['maxThumbnailSize'],
    needUpdate: map['needUpdate'],
    storageQuota: map['storageQuota'] != null
        ? StorageQuota.fromMap(map['storageQuota'])
        : null,
    user: map['user'] != null ? DriveUser.fromMap(map['user']) : null,
    updateUrl: map['updateUrl'],
  );
}