MediaConfig.fromJson(Map<String, Object?> json) : mUploadSize = ((v) => v != null ? v as int : null)(json['m.upload.size']);