getValue method

  1. @useResult
Map<String, dynamic>? getValue(
  1. String? key
)

Returns the value for key as a Map<String, dynamic>, or null if the key is missing or the value cannot be converted.

Implementation

@useResult
Map<String, dynamic>? getValue(String? key) {
  if (isEmpty || key == null) {
    return null;
  }

  final dynamic value = this[key];

  return MapExtensions.toMapStringDynamic(value);
}