AEObject.internal constructor

  1. @protected
AEObject.internal(
  1. Map<String, dynamic> map
)

Implementation

@protected
AEObject.internal(Map<String, dynamic> map)
    : _iterable = map.entries.where(_valueIsNotNull).map((entry) {
        if (entry.value is List) {
          return MapEntry(entry.key, AEList(entry.value as List));
        }
        if (entry.value is Map<String, dynamic>) {
          return MapEntry(
              entry.key, AEObject(entry.value as Map<String, dynamic>));
        }
        return entry;
      });