UsagePlanKeys.fromJson constructor

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

Implementation

factory UsagePlanKeys.fromJson(Map<String, dynamic> json) {
  return UsagePlanKeys(
    items: (json['item'] as List?)
        ?.whereNotNull()
        .map((e) => UsagePlanKey.fromJson(e as Map<String, dynamic>))
        .toList(),
    position: json['position'] as String?,
  );
}