UserDefinedFunction.fromJson constructor

UserDefinedFunction.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UserDefinedFunction.fromJson(Map<String, dynamic> json) {
  return UserDefinedFunction(
    catalogId: json['CatalogId'] as String?,
    className: json['ClassName'] as String?,
    createTime: timeStampFromJson(json['CreateTime']),
    databaseName: json['DatabaseName'] as String?,
    functionName: json['FunctionName'] as String?,
    ownerName: json['OwnerName'] as String?,
    ownerType: (json['OwnerType'] as String?)?.toPrincipalType(),
    resourceUris: (json['ResourceUris'] as List?)
        ?.whereNotNull()
        .map((e) => ResourceUri.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}