ColumnLevelPermissionRule.fromJson constructor

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

Implementation

factory ColumnLevelPermissionRule.fromJson(Map<String, dynamic> json) {
  return ColumnLevelPermissionRule(
    columnNames: (json['ColumnNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    principals: (json['Principals'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}