ReplicationRule.fromJson constructor

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

Implementation

factory ReplicationRule.fromJson(Map<String, dynamic> json) {
  return ReplicationRule(
    destinations: (json['destinations'] as List)
        .whereNotNull()
        .map(
            (e) => ReplicationDestination.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}