FileObject.fromJson constructor Null safety

FileObject.fromJson(
  1. dynamic json
)

Implementation

FileObject.fromJson(dynamic json)
    : id = json['id'] as String?,
      name = json['name'] as String,
      bucketId = json['bucket_id'] as String?,
      owner = json['owner'] as String?,
      updatedAt = json['updated_at'] as String?,
      createdAt = json['created_at'] as String?,
      lastAccessedAt = json['last_accessed_at'] as String?,
      metadata = json['metadata'] != null
          ? Metadata.fromJson(json['metadata'])
          : null,
      buckets =
          json['buckets'] != null ? Bucket.fromJson(json['buckets']) : null;